package cn.thornbird.orgsync.entity;

import cn.thornbird.orgsync.entity.status.AppType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "certificate_details")
@Where(clause = "deleted_at is null")
public class CertificateDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 2115826628073383431L;

    @Column(name = "certificate_id")
    private String certificateId;

    @Column(name = "app_type")
    private AppType appType;

    @Column(name = "data")
    private String data;

}
